package entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.math.BigDecimal;
import java.util.Date;

@Entity
public class RoomLog {

    @Id
    private int logid;

    private String rno;

    private BigDecimal oldcost;

    private BigDecimal newcost;

    @Temporal(TemporalType.TIMESTAMP)
    private Date updatetime;

    private String username;

    public RoomLog() {
    }

    public String getRno() {
        return rno;
    }

    public BigDecimal getOldcost() {
        return oldcost;
    }

    public BigDecimal getNewcost() {
        return newcost;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getUsername() {
        return username;
    }

    public void setRno(String rno) {
        this.rno = rno;
    }

    public void setOldcost(BigDecimal oldcost) {
        this.oldcost = oldcost;
    }

    public void setNewcost(BigDecimal newcost) {
        this.newcost = newcost;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
